package com.css.zfzx.sjcj.modules.statistics.fxEconomicLossEvaluationMap.service.impl;

import com.css.zfzx.sjcj.common.vo.DivisionVo;
import com.css.zfzx.sjcj.modules.statistics.fxEconomicLossEvaluationMap.repository.FxEconomicLossEvaluationMapRepository;
import com.css.zfzx.sjcj.modules.statistics.fxEconomicLossEvaluationMap.repository.entity.FxEconomicLossEvaluationMapEntity;
import com.css.zfzx.sjcj.modules.statistics.fxEconomicLossEvaluationMap.service.FxEconomicLossEvaluationMapService;
import com.css.zfzx.sjcj.modules.statistics.fxEconomicLossLevelMap.repository.entity.FxEconomicLossLevelMapEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class FxEconomicLossEvaluationMapServiceImpl implements FxEconomicLossEvaluationMapService {
    @Autowired
    private FxEconomicLossEvaluationMapRepository nativeRepository;

    @Override
    public List<FxEconomicLossEvaluationMapEntity> findCreateTime(LocalDateTime createTime, int identify) {
        List<FxEconomicLossEvaluationMapEntity> entities = nativeRepository.findCreateTime(createTime,identify);
        return entities;
    }

    @Override
    public List<FxEconomicLossEvaluationMapEntity> findUpdateTime(LocalDateTime updateTime, int identify) {
        List<FxEconomicLossEvaluationMapEntity> entities = nativeRepository.findUpdateTime(updateTime,identify);
        return entities;
    }

    @Override
    public List<DivisionVo> count(int identify1, int identify) {
        return nativeRepository.count(identify1,identify);
    }

}
